import { dataCompanyAxios, dataQueryAxios } from '@/utils/request'

// 通用详情
export const getCommonEventDetail = (data: any): Promise<any> => {
  return dataCompanyAxios({
    url: '/event/detail',
    method: 'post',
    data
  })
}

// 招投标详情
export const getBiddingEventDetail = (params: any): Promise<any> => {
  return dataCompanyAxios({
    url: `/companyInfo/detail/bidding/${params.id}`,
    method: 'get',
    params
  })
}

// 软件著作权信息表:根据id查询
export const getSoftwareDetail = (params: any): Promise<any> => {
  return dataCompanyAxios({
    url: `/detail/software/copyright/selectById`,
    method: 'get',
    params
  })
}

// icp备案主体信息:根据id查询
export const getIcpRecordDetail = (params: any): Promise<any> => {
  return dataCompanyAxios({
    url: `/detail/icp/record/info/selectById`,
    method: 'get',
    params
  })
}

// 企业资质认证表:根据id查询
export const getCompanyCertDetail = (params: any): Promise<any> => {
  return dataCompanyAxios({
    url: `/detail/company/cert/selectById`,
    method: 'get',
    params
  })
}

// OLAP:根据id查询
export const getCompanyAbroadDrugDetail = (params: any): Promise<any> => {
  return dataCompanyAxios({
    url: `/detail/abroad/drug/selectById`,
    method: 'get',
    params
  })
}

// 获取导出企业信息query
export const callExportQuery = (data: any): Promise<any> => {
  return dataCompanyAxios({
    url: `/export/company`,
    method: 'post',
    data
  })
}
// 导出企业
export const callExportList = (data: any): Promise<any> => {
  return dataQueryAxios({
    url: `/api/data-query/v1/exports/export-by-query`,
    method: 'post',
    data
  })
}
